package com.examp.dy.dy.dao;

import com.examp.dy.dy.entities.Book;
import org.springframework.data.domain.Page;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface BookRepository extends JpaRepository<Book,Long> {
    @Override
    List<Book> findAll();

    @Override
    void deleteById(Long bookId);

    Book findByBookId(long bookId);

    Book findBookByBookname(String bookname);


}
